setTimeout(function(){
	console.log('item.js');
	//获取标识符
	origin_url = window.location.href;
	url_tags = origin_url.split('/');
	tag = url_tags[3];
	article = {};
	//获取标题
	let title = $('.article-title').text();
	console.log(title);
	//找到内容块
	contents = '';
	let tmp_contents = $('.article-content').children();
	
	if(tmp_contents.length == 1){
		 tmp_contents = $('.article-content').children().children();
	}
	tmp_contents.each(function(){
		if(src = $(this).find('img').attr('src')){
			data =  imageDump(src);
			console.log(data);
			tmp_img = "<p><img src=\""+ data.bos_url +"\" data-w=\"" + data.width +"\" data-h=\"" + data.height + " \"data-bjh-origin-src=\"" + data.bos_url +"\"></p>" ;
			contents = contents + tmp_img;
			
		}else{
			text = $(this).text();
			text = textDump(text);
			tmp_text = "<p>"+ text + "</p>";
			contents = contents + tmp_text;
		}
	})
	article.title = title;
	article.content = contents;
	result = setCache(tag,JSON.stringify(article));
	if(result){
		window.location.href = 'https://baijiahao.baidu.com/?tag='+tag;
	}
},2000);

